/****************************************************************
 * * Product  :   HP Subscriber Network Application Policy
 * * Module   :   FIXME: <RTP/Scheduler, should be your maven project name>
 * * Date: Apr 10, 2015
 * * Author: Joey Yi
 * * (C) Copyright 2015, Hewlett-Packard Company, All Rights Reserved.
 * * This software is the proprietary information of HP, Inc.
 * * Use is subject to license terms.
 * ****************************************************************
 * * Description:
 * * Get the SGM task and invoke the SGM task executor.
 * *
 ****************************************************************/
package com.hp.snap.gr.task.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.hp.snap.gr.exception.ActionException;
import com.hp.snap.gr.exception.GRMException;
import com.hp.snap.gr.model.TaskTypes;

/**
 * Get the SGM task and invoke the SGM task executor.
 * Date: 2016/1/15
 * @Author Shaxj
 **/
public class GRSiteTaskServiceImpl extends AbstractGRSiteTaskServiceImpl {
    private static Logger logger = LoggerFactory.getLogger(GRSiteTaskServiceImpl.class);

    @Override
    protected boolean executeTask(String taskName, TaskTypes taskType)
            throws GRMException, ActionException {
        // do task
        return doTask(taskName);
    }

    @Override
    protected String getTaskConfigurationFileName() {
        return "gr_sman_task.xml";
    }

}
